<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru" xml:lang="ru"> 
    <head>
	<title>LocalCRM</title>
	<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
	<script src="js/jquery-ui-1.8.4.custom.min.js" type="text/javascript"></script>
	<script src="js/jquery.blockUI.js" type="text/javascript"></script>
	<script src="js/jquery.contextMenu.js" type="text/javascript"></script>
	<script src="js/jquery.maskedinput-1.3.min.js" type="text/javascript"></script>

	<script src="js/i18n/grid.locale-ru.js" type="text/javascript"></script>
	<script src="js/jquery.jqGrid.min.js" type="text/javascript"></script>

	<script src="js/crm/common.js" type="text/javascript"></script>
	<link href="css/redmond/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css"/>
	<link href="css/jquery.contextMenu.css" rel="stylesheet" type="text/css"/>
	<link href="css/ui.jqgrid.css" rel="stylesheet" type="text/css"/>
    </head>
    <body style="display:none;">
{* Подключаем основное верхнее меню-слайдер *}
{include file="admin/submodules/_menu.html"}
	<script type="text/javascript">
	<!--{literal}
	$(document)
	    .ready
	    (
		function()
		{
		    $('body').show();
		}
	    );
	{/literal}-->
	</script>
	<table width="100%">
	    <tr>
		<td width="20%" valign="top">
		    <ul>
{if $smarty.request.name != 'manager'}
			<li><a href="?name=manager">Сотрудники</a></li>
{/if}
{if $smarty.request.name != 'fine_settings'}
			<li><a href="?name=fine_settings">Штрафы</a></li>
{/if}
		    </ul>
		</td>
		<td>
{if not empty($smarty.request.name)}
    {if $smarty.request.name == 'manager'}
	{include file="admin/dictionary._manager.html"}
    {elseif $smarty.request.name == 'fine_settings'}
	{include file="admin/dictionary._fine_settings.html"}
    {else}
		    <h1>Функция редактирования этого <span class="ui-state-disabled">(временно?)</span> справочника недоступна</h1>
    {/if}
		    <table class="grid" id="datagrid"></table>
		    <div class="grid-p" id="datagrid-p"></div>
		</td>
	    </tr>
	</table>
{else}
{/if}

    </body>
</html>
